<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑文章</title>
    <link href="/res/bootstrap.min.css" rel="stylesheet">
    <script src="/res/jquery.min.js"></script>
    <script src="/res/bootstrap.min.js"></script>
    <!--<link rel="stylesheet" href="css/bootstrap.css">-->
</head>
<body>

<div class="container">
    <div class="row row-centered">
        <div class="well col-md-12 col-centered">
            <form class="form-horizontal center-block" role="form" method="post" action="/article/{{$data->id}}">
                <input type="hidden" name="_method" value="put">
                @csrf
                <legend>编辑博客文章</legend>
                <div class="form-group ">
                    <label class="col-sm-2 control-label" for="title">标题</label>
                    <div  class="col-sm-10 ">
                        <input class="form-control" id="title" type="text" name="title" placeholder="请输入标题" value="{{$data->title}}"/>
                    </div>
                </div>

                <div class="form-group ">
                    <label class="col-sm-2 control-label" for="intro">简介</label>
                    <div  class="col-sm-10 ">
                        <input class="form-control" id="intro" name="intro" type="text" placeholder="请输入简介" value="{{$data->intro}}"/>
                    </div>
                </div>

                <div class="form-group ">
                    <label class="col-sm-2 control-label" for="content">内容</label>
                    <div  class="col-sm-10 ">
                        <textarea class="form-control" id="content" name="content" placeholder="请输入内容(编辑器)">{{$data->content}}</textarea>
                    </div>
                </div>

                <div class="form-group ">
                    <label class="col-sm-2 control-label" for="status">是否发布</label>
                    <div class="col-sm-4">
                        <select id="disabledSelect" class="form-control" name="status">
                            <option value="1" @if($data->status == 1) selected="selected"@endif>发布</option>
                            <option value="0" @if($data->status == 0) selected="selected"@endif>不发布</option>
                        </select>
                    </div>
                </div>
                <div class="form-group ">
                    <label class="col-sm-2 control-label" for="ds_host"> </label>
                    <div class="col-sm-4">
                        <input class="btn btn-default pull-right" id="ds_host" type="submit" value="点击保存"/>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>

</body>
</html>